//
//  CourseSectionHeadView.swift
//  Auscultation
//
//  Created by 张文博 on 2021/3/21.
//

import UIKit

class CourseSectionHeadView: UIView {
    
    lazy var sectionTitleL: UILabel = {
        let sectionTitleL = UILabel()
        self.addSubview(sectionTitleL)
        sectionTitleL.font = UIFont.boldSystemFont(ofSize: 18)
        sectionTitleL.textColor = UIColor.init(lgf_HexString: "0F0F0F")

        return sectionTitleL
    }()

    lazy var sectionMore: UIButton = {
        let sectionMore = UIButton()
        self.addSubview(sectionMore)
        sectionMore.setTitle("查看全部>>", for: .normal)
        sectionMore.titleLabel?.font = UIFont.systemFont(ofSize: 12)
        sectionMore.setTitleColor(UIColor.init(lgf_HexString: "A0A0A0") , for: .normal)
        return sectionMore
    }()
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor = .white
        sectionTitleL.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(14)
            make.centerY.equalToSuperview()
        }
        
        sectionMore.snp.makeConstraints { (make) in
            make.right.equalToSuperview().offset(-15)
            make.centerY.equalToSuperview()
            make.height.equalToSuperview()
        }

    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
